<h3 class="title-popup">Form Detil Grup User</h3>   
<form action="" method="post">
    <fieldset id="flddetil">
        <dl>
            <dt class="mandatory">ID Group</dt>
            <dd><?php echo $detail->id_group_user;?>&nbsp;</dd>

            <dt class="mandatory">Nama Group</dt>
            <dd><?php echo ucwords($detail->group_user);?>&nbsp;</dd>

            <dt>Keterangan</dt>
            <dd><?php echo $detail->keterangan == ""?"Tidak ada keterangan":$detail->keterangan;?>&nbsp;</dd>

            <dt>Master Group</dt>
            <dd><?php echo $detail->master_group == ""?"Top Group (No Master Group)":$detail->master_group;?>&nbsp;</dd>

            <dt>Hak Akses Default</dt>
            <dd>
                <?php if($default_hak_akses->num_rows() > 0): ?>
                    <br />
                    <table class="GridTable" style="margin-top:10px; clear:both; width:100%; margin-top:10px; font-weight: normal !important">
                        <tbody>
                            <tr class="GridHeader">
                                <td>
                                    No.
                                </td>
                                <td>
                                    ID
                                </td>
                                <td>
                                    Nama Menu
                                </td>
                                <td>
                                    Group Menu
                                </td>
                                <td>
                                    Read
                                </td>
                                <td>
                                    Edit
                                </td>
                                <td>
                                    Delete
                                </td>
                            </tr>
                            <?php $counter = 1 ?>
                            <?php foreach($menus->result() as $menu): ?>
                                <?php foreach($default_hak_akses->result() as $default): ?>
                                    <?php if($default->id_menu == $menu->id_menu): ?>
                                        <tr class="GridItem1">
                                            <td>
                                                <?php echo $counter; ?>
                                            </td>
                                            <td>
                                                <?php echo $menu->id_menu ?>
                                            </td>
                                            <td>
                                                <?php echo $menu->menu ?>
                                            </td>
                                            <td>
                                                <?php echo $menu->menu_group ?>
                                            </td>
                                            <td>
                                                <span><?php echo $default->is_read == 1?"Ada Akses":"Tidak ada akses" ?></span>
                                            </td>
                                            <td>
                                                <span><?php echo $default->is_modify == 1?"Ada Akses":"Tidak ada akses" ?></span>
                                            </td>
                                            <td>
                                                <span><?php echo $default->is_delete == 1?"Ada Akses":"Tidak ada akses" ?></span>
                                            </td>
                                        </tr>
                                        <?php $counter++; ?>
                                    <?php endif; ?>
                                <?php endforeach; ?>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                <?php else: ?>
                    Tidak ada hak akses
                <?php endif; ?>
            </dd>
        </dl>
    </fieldset>
    <div id="box-control-save">
        <input type="button" class="CommandButton" value="Close" onclick="javascript:closeGB_();"/>
    </div>
</form>
<script type="text/javascript">
    function closeGB_ (){
    <?php echo CloseGB(true); ?>
        }	
</script>
